#ifndef	__IIC_H
#define __IIC_H
#include <pebble.h>
#include <stm32f10x_it.h>

/*
extern ubyte	accOReep;
extern ushort	address;
extern ubyte	direction;
extern ubyte	rxCount;
extern ubyte	*rxData;
extern ubyte	rxLen;
extern ubyte	slaveAdd7;
extern ubyte	txBuff[8];
extern ubyte	txCount;
extern ubyte	*txData;
extern ubyte	txLen;
extern ubyte	txORrx;
*/

void	iic_init	(void);
ubyte	iic_read	(ubyte,ubyte,ubyte*,ushort);
ubyte	iic_wait	(void);
void	iic_write	(ubyte,ubyte,ubyte*,ushort);

#endif